from typing import Final

class ProtocolFlags:
    """协议标志位定义"""
    FEI_KONG_FLAG: Final = bytes([0x46, 0x4B, 0x02, 0x00, 0x01, 0x0E, 0x4B, 0x46])
    CARD_TYPE_CHECK_FLAG: Final = bytes([0x46, 0x4B, 0x02, 0x00, 0x01, 0x09, 0x4B, 0x46])
    DATA_SEND_FLAG: Final = bytes([0x46, 0x4B, 0x02, 0x00, 0x01, 0x02, 0x4B, 0x46])
    FEI_KONG_REPLY_FLAG: Final = bytes([0x46, 0x4B, 0x04, 0x00, 0x01, 0x0E, 0x00, 0x00, 0x4B, 0x46])
    DATA_SEND_REPLY_FLAG: Final = bytes([0x46, 0x4B, 0x04, 0x00, 0x01, 0x21, 0x00, 0x00, 0x4B, 0x46])
    FEI_KONG_CONTENT_START: Final = bytes([0x46, 0x4b, 0xfc, 0x03, 0x01, 0x1b, 0x00, 0x10])
    FEI_KONG_CONTENT_STOP: Final = bytes([0x46, 0x4B, 0x02, 0x00, 0x01, 0x01, 0x4B, 0x46])
    DATA_CONTENT_REPLY: Final = bytes([0x46, 0x4b, 0x08, 0x00, 0x01, 0x21, 0x03, 0x00, 0x00, 0x00, 0x00, 0x00, 0x4b, 0x46])
    DATA_CONTENT_REPLY_2: Final = bytes([0x46, 0x4b, 0x08, 0x00, 0x01, 0x21, 0x03, 0x00, 0xe8, 0x03, 0x00, 0x00, 0x4b, 0x46])
    DATA_CONTENT_REPLY_STOP: Final = bytes([0x46, 0x4b, 0x04, 0x00, 0x01, 0x21, 0x00, 0x00, 0x4b, 0x46])
    CARD_TYPE_CHECK_REPLY: Final = bytes.fromhex('464b7c010109000041011401000200084000200000320000000c000100010101000000001201e216c0a8c864ffffff00c0a8c8240014d41ac0a80101c0a8010100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002000000030104040abdbdbdffffff00464b2d3854312d4241304200000000000000000000000000000000000000000085904725f4411290998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c04040000526f757465722d53534944000000000000000000000000000000000000000000d35b96742d139bc45d4295f63f134b8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c998c5b39e85d0e8c4b46')  # 保持原有的长响应数据
